<template>
  <div class="branch-container">
    <EmptyIndex :isEmpty="vantListGather.list.length">
      <template #listCon>
        <van-list
          v-model="vantListGather.loading"
          :finished="vantListGather.finished"
          :finished-text="vantListGather.finishedText"
          :offset="vantListGather.offset"
          @load="onLoad"
        >
          <ul class="gs-details">
            <li
              v-for="(item, index) in vantListGather.list"
              :key="index"
              @click.prevent="handleEnterpriseInfoQuery(item.name, item.id)"
            >
              <div class="left-info">
                <div class="left-info-t">
                  <div class="order-number">{{ index + 1 }}</div>
                  <div class="left-info-t-gs">
                    <h3>{{ item.name }}</h3>
                    <p>
                      <span
                        >法人：<span
                          class="page-link-color"
                          @click.stop="handleBusinessRole(item.name, item.legalPersonName)"
                          >{{ item.legalPersonName }}</span
                        ></span
                      >
                      <span>经营状态：{{ item.regStatus | isEmptyData }}</span>
                    </p>
                  </div>
                </div>
                <div class="left-info-b">
                  <p>成立日期：{{ item.estiblishTime | dateFormat }}</p>
                </div>
              </div>
              <div class="right-icon">
                <em class="iconfont icon-youjiantou" />
              </div>
            </li>
          </ul>
        </van-list>
      </template>
    </EmptyIndex>
  </div>
</template>

<script>
import EmptyIndex from "@/components/empty";
import onLoadMixin from "@/mixin/onLoadMixin";
import investMethodsMixin from "@/mixin/investMethodsMixin";
export default {
  name: "Branch",
  components: {
    EmptyIndex,
  },
  mixins: [onLoadMixin, investMethodsMixin],
  data() {
    return {
      pageNum: 1,
    };
  },
};
</script>